name = "xxt is my lover"
print(name[-1])
print(name.index("x"))
s1 = "ww"
s2 = "qq"
print(s1.replace(s1, s2), s1)
# for i in name:
#     print(i)
print(name.split(" "))

str1 = " abc "
print(str1.strip())
str2 = "12 abc 21"
print(str2.strip("12"))
print(name.count("xx"), len(name))

s3 = ""
if not s3:
    print("s3 is empty")
